home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / vsrc.tar / voyager7_src / voyager.c < prev    next >
C/C++ Source or Header  |  1991-02-27  |  677b  |  51 lines

  1. /*
  2. // Abstract:
  3. //    VMAIN---Voyager Mainline
  4. //
  5. //    The Voyager Mainline module provides access to the various
  6. //    Voyager routiens via a Command Line Interface.
  7. //
  8. // Author:
  9. //    Derek S. Nickel
  10. //
  11. // Creation date:
  12. //    25 October 1990
  13. //
  14. // History:
  15. // V01-001    Derek S. Nickel        25-OCT-1990
  16. //    Original.
  17. //
  18. */
  19.  
  20. #include "commands.h"
  21. #include "ports.h"
  22.  
  23. int main(int argc, char *argv[])
  24. {
  25.     int done;
  26.     int port_no;
  27.  
  28.     /*
  29.     // Load port 0 with main ROM.
  30.     */
  31.  
  32.     open_port(0,"HP48");
  33.  
  34.     /*
  35.     // Execute commands until done.
  36.     */
  37.  
  38.     do {
  39.         done = parse_command();
  40.     } while (!done);
  41.  
  42.     /*
  43.     // Close all ports.
  44.     */
  45.  
  46.     for (port_no = 0; port_no <= 2; port_no++)
  47.         close_port(port_no);
  48.  
  49.     return 0;
  50. }
  51.